package web_model

import (
	"time"

	"gorm.io/gorm"
)

const TableNameTransDriver = "trans_driver"

// TransDriver mapped from table <trans_driver>
type TransDriver struct {
	ID        int64          `gorm:"column:id;type:INTEGER;primaryKey" json:"id"`
	Name      string         `gorm:"column:name;type:text" json:"name"`
	Phone     string         `gorm:"column:phone;type:TEXT" json:"phone"`
	OrgID     int64          `gorm:"column:org_id;type:INTEGER" json:"org_id"`
	OrgName   string         `gorm:"column:org_name;type:TEXT" json:"org_name"`
	Status    string         `gorm:"column:status;type:char" json:"status"`
	Account   string         `gorm:"column:account;type:TEXT" json:"account"`
	Pwd       string         `gorm:"column:pwd;type:TEXT" json:"pwd"`
	CreatedAt time.Time      `gorm:"column:created_at;type:DATETIME" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:DATETIME" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:DATETIME" json:"deleted_at"`
	CreatedBy string         `gorm:"column:created_by;type:TEXT" json:"created_by"`
	UpdatedBy string         `gorm:"column:updated_by;type:text" json:"updated_by"`
}

// TableName TransDriver's table name
func (*TransDriver) TableName() string {
	return TableNameTransDriver
}
